package 异常;
//自定义异常
//继承于RuntimeException 或者Exception
//其中RuntimeException是运行时异常，Exception是编译时异常
//提供全局常量:seriaVersionUID
public class MyException extends Exception{
    static final long serialVersionUID = -3387516993124229948L;
    public MyException(){
    }
    public MyException(String message){
        super(message);
    }//一般写两个就行
}
